//
//  BubbleMixCom.m
//  Jyxt
//
//  Created by 刘日 on 17/6/8.
//  Copyright © 2017年 DaLian Rental Housing Management. All rights reserved.
//

#import "BubbleMixCom.h"
#import <LemonBubble.h>

@implementation BubbleMixCom

- (void)showSuccess: (NSDictionary *)data{
    NSString *msg = data[@"msg"];
    NSInteger delay = [data[@"closeDelay"] integerValue];
    [[LKFreeCtrl getTopViewController] showRightWithTitle: msg autoCloseTime:delay];
}

- (void)showError: (NSDictionary *)data{
    NSString *msg = data[@"msg"];
    NSInteger delay = [data[@"closeDelay"] integerValue];
    [[LKFreeCtrl getTopViewController] showErrorWithTitle: msg autoCloseTime:delay];
}

- (void)showProgress: (NSDictionary *)data{
    NSString *msg = data[@"msg"];
    [[LKFreeCtrl getTopViewController] showRoundProgressWithTitle: msg];
}

- (void)hide: (NSDictionary *)data{
    [[LKFreeCtrl getTopViewController] hideBubble];
}

@end
